﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="detail.aspx.cs" Inherits="E2_WEBSITE.News.detail" MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

    <asp:FormView ID="detailNews" runat="server" DataSourceID="dataNews">
        <ItemTemplate>
            <asp:Label ID="Label7" runat="server" Text='<%# Eval("Title") %>' 
                Font-Bold="True" Font-Size="Large"></asp:Label>
            <br />
            <asp:Label ID="Label8" runat="server" Text='<%# "b&#7903;i " + Eval("User") %>' 
                Font-Size="X-Small" ForeColor="#999999"></asp:Label>
            <br />
            <asp:Label ID="Label9" runat="server" Text='<%# Eval("PublishDay") %>' 
                Font-Size="X-Small"></asp:Label>
            <br />
            <hr />
            <asp:Label ID="Label10" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
        </ItemTemplate>
    </asp:FormView>
    
    <asp:ObjectDataSource ID="dataNews" runat="server" SelectMethod="GetNewsInfo" 
        TypeName="E2_WEBSITE.Code.Admin.NewsController">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="NewsId" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
